<template>
  <div class="productionrisk">
    <div class="ac-sidebar-group">
      <div v-for="(item, index) in data" :key="index" class="ac-sidebar-block">
        <div class="bg"></div>
        <div class="ac-box">
          <div
            class="ac-sidebar-color"
            :style="{
              height: height + 'px',
              fontSize: `${valueSize} !important`,
            }"
          >
            {{ item.num || item.count }}
          </div>
          <div class="ac-sidebar-font">{{ item.name }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { defineComponent } from "vue";
export default defineComponent({
  name: "Productionrisk",
  components: {},
  props: {
    data: {
      type: Array,
      default: () => {
        return [];
      },
    },
    height: {
      type: Number,
    },
    valueSize: {
      type: String,
      default: "26px",
    },
  },
  setup() {
    return {};
  },
  mounted() {},
  methods: {},
});
</script>
<style lang="scss" scoped>
.productionrisk {
  margin-top: 10px;
}
.ac-sidebar-group {
  display: flex;
  justify-content: space-around;
  .ac-sidebar-font {
    white-space: nowrap;
    font-size: 12px;
    color: #fff !important;
  }

  .ac-sidebar-color {
    color: #00f0ff;
    font-size: 26px;
    font-weight: 700;
    font-family: "D-DIN";
    height: 29px;
    line-height: 29px;
  }
}
.ac-sidebar-block {
  .bg {
    opacity: 0.7;
    width: 98px;
    height: 96px;
    background-image: url("../assets/textbg.svg");
  }

  position: relative;
}
.ac-box {
  position: absolute;
  left: 50px;
  z-index: 99;
  top: 9px;
}
</style>
